package com.neu.entity;

public class TBUser {
private int id;
private String username;
private String userpass;
public TBUser() {
	super();
}
public TBUser(int id, String username, String userpass) {
	super();
	this.id = id;
	this.username = username;
	this.userpass = userpass;
}
@Override
public String toString() {
	return "TBUser [id=" + id + ", username=" + username + ", userpass=" + userpass + "]";
}
@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + id;
	result = prime * result + ((username == null) ? 0 : username.hashCode());
	result = prime * result + ((userpass == null) ? 0 : userpass.hashCode());
	return result;
}
@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	TBUser other = (TBUser) obj;
	if (id != other.id)
		return false;
	if (username == null) {
		if (other.username != null)
			return false;
	} else if (!username.equals(other.username))
		return false;
	if (userpass == null) {
		if (other.userpass != null)
			return false;
	} else if (!userpass.equals(other.userpass))
		return false;
	return true;
}
public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}
public String getUsername() {
	return username;
}
public void setUsername(String username) {
	this.username = username;
}
public String getUserpass() {
	return userpass;
}
public void setUserpass(String userpass) {
	this.userpass = userpass;
}
}
